package com.data.web.handlerTcpData;


import com.data.biz.service.IBizAccService;
import com.data.biz.service.IBizDipService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.ParseException;
import java.util.Arrays;
import java.util.List;

@Service
@Slf4j
public class DataService {

    @Autowired
    private IBizAccService accDataService;

    @Autowired
    private IBizDipService dipDataService;



    public static void main(String[] args) throws ParseException {
        String aa = "MonMay2910:50:532023127.0.0.1wrote:ip=123.456.677.111,type=acc,channel=com8[[1101,5500,-0.005,0.0,-0.011,-0.005,-0.005,-0.005,0.001,0.005,0.018,13.836,0.336,0.361,0.085,0.079,0.987,0.003,0.937,0.986,0.987,0.988,1.036,0.005,13.855,13.555,12.818,1.2,0.999,0.883,0.078,0.001,0.067,0.078,0.078,0.079,0.09,0.005,0.064,10.882,11.709,0.368,0.364,0.322,30.331,1685325114.0],[1102,5500,-0.005,0.0,-0.013,-0.005,-0.005,-0.005,0.001,0.005,0.009,0.391,13.527,0.444,0.098,0.08,0.987,0.004,0.947,0.986,0.987,0.988,1.048,0.005,13.5,12.827,13.264,1.197,1.157,1.147,0.078,0.001,0.065,0.078,0.078,0.079,0.089,0.005,0.009,11.073,10.6,0.468,0.439,0.363,30.334,1685325210.0],[1103,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,-0.001,0.005,0.018,0.336,0.618,0.208,0.103,0.088,0.987,0.003,0.957,0.986,0.987,0.988,1.03,0.005,14.1,13.591,12.682,1.28,0.996,0.87,0.078,0.001,0.07,0.078,0.078,0.078,0.087,0.005,10.473,10.809,12.682,0.383,0.325,0.276,30.337,1685325307.0],[1104,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,0.0,0.005,0.036,0.436,1.591,0.15,0.103,0.102,0.987,0.003,0.954,0.986,0.987,0.988,1.03,0.005,13.873,13.373,14.264,1.251,1.152,0.964,0.078,0.001,0.069,0.078,0.078,0.078,0.087,0.005,11.145,10.791,13.373,0.295,0.244,0.244,30.338,1685325403.0],[1105,5500,-0.005,0.0,-0.008,-0.005,-0.005,-0.005,-0.001,0.005,0.009,0.391,0.845,0.406,0.079,0.064,0.987,0.002,0.961,0.986,0.987,0.987,1.044,0.005,13.836,13.382,13.136,0.654,0.54,0.519,0.079,0.0,0.07,0.078,0.078,0.079,0.088,0.005,0.009,0.573,10.918,0.492,0.147,0.118,30.339,1685325500.0],[1106,5500,-0.005,0.0,-0.012,-0.005,-0.005,-0.005,-0.001,0.005,0.009,0.245,1.5,0.258,0.127,0.074,0.987,0.004,0.921,0.986,0.987,0.988,1.076,0.005,14.4,14.164,13.573,1.189,1.072,0.996,0.078,0.001,0.069,0.078,0.078,0.079,0.086,0.005,0.009,10.827,11.2,0.486,0.407,0.255,30.344,1685325596.0],[1107,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.001,0.005,0.045,1.336,1.036,0.147,0.087,0.086,0.987,0.003,0.944,0.987,0.987,0.987,1.058,0.005,12.991,14.427,13.345,1.174,1.106,1.068,0.078,0.001,0.07,0.078,0.078,0.078,0.087,0.005,10.527,11.218,10.764,0.4,0.357,0.327,30.336,1685325692.0],[1108,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.001,0.005,0.073,13.727,0.809,0.149,0.1,0.092,0.987,0.004,0.932,0.986,0.987,0.987,1.058,0.005,13.6,13.882,12.918,1.453,1.262,1.2,0.078,0.001,0.07,0.078,0.078,0.078,0.087,0.005,10.945,12.191,12.5,0.327,0.308,0.307,30.331,1685325789.0],[1109,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,0.0,0.005,0.118,13.245,14.082,0.147,0.097,0.097,0.987,0.004,0.936,0.986,0.987,0.988,1.037,0.005,14.364,13.491,13.236,1.368,1.351,1.141,0.078,0.001,0.069,0.078,0.078,0.078,0.088,0.005,10.664,11.064,11.345,0.468,0.391,0.377,30.293,1685325885.0],[1110,5500,-0.005,0.0,-0.012,-0.005,-0.005,-0.005,-0.001,0.005,0.064,0.291,12.218,0.166,0.161,0.133,0.987,0.005,0.944,0.986,0.987,0.988,1.033,0.005,13.827,13.0,13.527,1.631,1.628,1.412,0.078,0.001,0.067,0.078,0.078,0.079,0.088,0.005,11.109,12.218,10.709,0.512,0.466,0.413,30.28,1685325981.0],[1111,5500,-0.005,0.0,-0.008,-0.005,-0.005,-0.005,0.0,0.005,0.009,0.236,0.736,0.379,0.095,0.07,0.987,0.003,0.947,0.986,0.987,0.987,1.027,0.005,13.6,14.291,13.945,1.007,0.859,0.851,0.079,0.001,0.07,0.078,0.079,0.079,0.087,0.005,0.009,10.936,10.509,0.382,0.208,0.187,30.268,1685326078.0],[1112,5500,-0.005,0.0,-0.011,-0.005,-0.005,-0.005,0.0,0.005,0.145,1.309,13.4,0.164,0.076,0.071,0.987,0.004,0.902,0.986,0.987,0.987,1.099,0.005,13.609,12.845,14.673,1.405,1.398,1.107,0.078,0.001,0.068,0.078,0.078,0.079,0.087,0.005,10.773,11.036,0.009,0.375,0.317,0.315,30.237,1685326174.0],[1113,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.0,0.005,0.018,0.291,0.527,0.169,0.074,0.068,0.987,0.004,0.911,0.986,0.987,0.987,1.111,0.005,13.755,13.5,13.091,1.179,1.114,1.001,0.078,0.001,0.069,0.078,0.078,0.078,0.088,0.005,11.318,11.082,10.836,0.305,0.293,0.287,30.226,1685326270.0],[1114,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,-0.004,0.005,0.018,1.4,0.255,0.167,0.068,0.067,0.987,0.003,0.911,0.987,0.987,0.987,1.111,0.005,13.636,14.236,13.145,0.723,0.713,0.671,0.078,0.0,0.07,0.078,0.078,0.078,0.088,0.005,0.045,12.518,0.4,0.232,0.14,0.121,30.215,1685326367.0],[1115,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.0,0.005,0.018,0.373,0.736,0.268,0.115,0.078,0.987,0.003,0.956,0.986,0.987,0.987,1.031,0.005,13.882,14.182,13.345,0.985,0.955,0.857,0.078,0.001,0.069,0.078,0.078,0.079,0.087,0.005,10.718,10.964,0.018,0.373,0.309,0.293,30.184,1685326463.0],[1116,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,-0.001,0.005,0.027,0.318,1.573,0.164,0.108,0.095,0.987,0.004,0.949,0.986,0.987,0.988,1.024,0.005,13.745,12.827,14.3,1.765,1.351,1.151,0.078,0.001,0.066,0.078,0.078,0.078,0.09,0.005,10.827,11.064,11.718,0.489,0.473,0.408,30.176,1685326559.0],[1117,5500,-0.005,0.0,-0.011,-0.005,-0.005,-0.005,0.001,0.005,0.009,0.236,0.736,0.38,0.12,0.09,0.987,0.004,0.921,0.987,0.987,0.987,1.122,0.005,13.836,12.873,14.109,1.361,0.95,0.937,0.078,0.001,0.069,0.078,0.078,0.078,0.087,0.005,0.009,11.009,10.373,0.41,0.309,0.295,30.133,1685326656.0],[1118,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.0,0.005,0.009,0.836,0.527,0.39,0.125,0.112,0.987,0.002,0.953,0.987,0.987,0.987,1.022,0.005,13.582,13.164,14.373,0.742,0.729,0.69,0.078,0.001,0.069,0.078,0.078,0.078,0.086,0.005,0.009,13.1,13.582,0.546,0.152,0.149,30.118,1685326752.0],[1119,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,-0.001,0.005,0.018,0.255,0.918,0.204,0.131,0.097,0.987,0.003,0.942,0.986,0.987,0.987,1.019,0.005,13.809,13.318,12.345,1.078,1.043,0.834,0.078,0.001,0.065,0.078,0.078,0.078,0.089,0.005,11.482,12.345,10.455,0.333,0.302,0.295,30.072,1685326848.0],[1120,5500,-0.005,0.0,-0.007,-0.005,-0.005,-0.005,-0.002,0.005,0.1,0.336,0.955,0.141,0.076,0.056,0.987,0.002,0.964,0.986,0.987,0.987,1.013,0.005,14.018,14.373,13.036,0.827,0.793,0.778,0.078,0.001,0.071,0.078,0.078,0.078,0.084,0.005,11.136,0.018,11.427,0.255,0.247,0.195,30.046,1685326945.0],[1121,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.0,0.005,0.018,0.618,0.245,0.286,0.125,0.115,0.987,0.005,0.839,0.986,0.987,0.987,1.194,0.005,14.136,13.573,24.082,1.368,1.27,1.021,0.079,0.001,0.071,0.078,0.078,0.079,0.087,0.005,0.009,13.273,11.291,0.457,0.25,0.236,30.018,1685327041.0],[1122,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,-0.001,0.005,0.009,0.445,0.809,0.516,0.132,0.068,0.987,0.002,0.954,0.986,0.987,0.987,1.027,0.005,14.245,18.955,13.627,0.751,0.666,0.655,0.079,0.001,0.072,0.078,0.079,0.079,0.086,0.005,0.009,0.282,10.627,0.598,0.13,0.129,29.965,1685327137.0],[1123,5500,-0.005,0.0,-0.008,-0.005,-0.005,-0.005,0.001,0.005,0.027,0.418,1.255,0.317,0.099,0.08,0.987,0.004,0.875,0.986,0.987,0.987,1.171,0.005,13.064,14.073,13.655,1.203,1.109,1.101,0.078,0.001,0.07,0.078,0.078,0.079,0.087,0.005,11.0,0.009,10.555,0.366,0.307,0.263,29.963,1685327234.0],[1124,5500,-0.005,0.0,-0.012,-0.005,-0.005,-0.005,0.0,0.005,0.036,0.264,15.282,0.274,0.126,0.086,0.987,0.004,0.943,0.986,0.987,0.987,1.04,0.005,14.045,13.555,12.973,1.463,1.304,1.162,0.078,0.001,0.065,0.078,0.078,0.079,0.089,0.005,11.664,11.991,11.291,0.351,0.328,0.326,29.924,1685327330.0],[1125,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.0,0.005,0.018,0.736,0.318,0.155,0.119,0.085,0.987,0.003,0.956,0.986,0.987,0.988,1.047,0.005,14.109,13.355,13.818,1.012,1.008,0.887,0.078,0.001,0.068,0.078,0.078,0.079,0.088,0.005,11.1,11.827,10.545,0.293,0.243,0.208,29.909,1685327426.0],[1126,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,-0.001,0.005,0.009,0.273,0.536,0.392,0.108,0.073,0.987,0.003,0.946,0.986,0.987,0.987,1.041,0.005,13.555,14.336,13.818,0.841,0.81,0.8,0.078,0.001,0.067,0.078,0.078,0.079,0.088,0.005,0.009,11.2,12.218,0.414,0.163,0.158,29.908,1685327523.0],[1127,5500,-0.005,0.0,-0.009,-0.005,-0.005,-0.005,0.0,0.005,0.018,0.291,0.518,0.613,0.116,0.081,0.987,0.003,0.945,0.986,0.987,0.987,1.059,0.005,13.873,14.473,24.3,0.916,0.749,0.718,0.079,0.001,0.07,0.078,0.079,0.079,0.088,0.005,0.018,0.291,10.945,0.769,0.183,0.169,29.862,1685327619.0],[1128,5500,-0.005,0.0,-0.007,-0.005,-0.005,-0.005,-0.004,0.005,0.055,0.291,0.591,0.106,0.079,0.073,0.987,0.001,0.981,0.987,0.987,0.987,0.993,0.005,14.273,23.336,21.673,0.263,0.241,0.23,0.079,0.0,0.077,0.079,0.079,0.079,0.081,0.005,0.182,0.418,0.7,0.088,0.071,0.053,29.857,1685327716.0],[1129,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,-0.003,0.005,0.009,0.618,0.264,0.644,0.074,0.051,0.987,0.002,0.947,0.986,0.987,0.987,1.033,0.005,13.982,23.236,13.182,0.605,0.579,0.571,0.078,0.001,0.071,0.078,0.078,0.079,0.085,0.005,0.009,0.345,0.609,0.589,0.145,0.133,29.848,1685327812.0],[1130,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,-0.001,0.005,0.009,0.236,0.491,0.314,0.126,0.091,0.987,0.003,0.947,0.986,0.987,0.988,1.033,0.005,14.309,13.2,13.855,1.066,0.936,0.803,0.078,0.001,0.07,0.078,0.078,0.078,0.085,0.005,0.009,10.836,11.1,0.43,0.265,0.228,29.813,1685327908.0],[1131,5500,-0.005,0.0,-0.011,-0.005,-0.005,-0.005,-0.001,0.005,0.027,0.509,11.809,0.176,0.083,0.082,0.987,0.004,0.951,0.986,0.987,0.988,1.02,0.005,13.645,14.064,14.618,1.436,1.323,1.15,0.078,0.001,0.068,0.078,0.078,0.078,0.085,0.005,10.845,11.236,11.827,0.418,0.356,0.312,29.803,1685328005.0],[1132,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.004,0.005,0.027,0.264,0.727,0.384,0.15,0.12,0.987,0.006,0.825,0.986,0.987,0.987,1.256,0.005,13.418,14.391,14.009,1.852,1.642,1.547,0.078,0.001,0.069,0.078,0.078,0.079,0.093,0.005,0.027,13.418,12.545,0.417,0.351,0.339,29.788,1685328101.0],[1133,5500,-0.005,0.0,-0.01,-0.005,-0.005,-0.005,0.003,0.005,0.009,0.273,14.336,0.343,0.102,0.102,0.987,0.006,0.873,0.987,0.987,0.987,1.166,0.005,13.691,13.318,14.536,2.021,1.857,1.706,0.078,0.001,0.067,0.078,0.078,0.079,0.089,0.005,0.009,11.718,12.091,0.601,0.352,0.343,29.764,1685328197.0],[1134,5500,-0.005,0.0,-0.016,-0.005,-0.005,-0.005,0.003,0.005,0.009,0.436,14.509,0.431,0.129,0.126,0.987,0.01,0.795,0.986,0.987,0.987,1.372,0.005,13.718,13.045,12.218,2.763,2.606,2.289,0.079,0.001,0.056,0.078,0.079,0.079,0.099,0.005,0.009,13.009,12.255,0.604,0.319,0.316,29.792,1685328294.0],[1135,5500,-0.005,0.0,-0.007,-0.006,-0.006,-0.005,-0.002,0.005,0.027,0.309,0.536,0.221,0.089,0.071,0.987,0.002,0.949,0.986,0.987,0.987,1.014,0.005,13.882,14.455,13.091,0.674,0.531,0.49,0.079,0.0,0.07,0.078,0.079,0.079,0.084,0.005,0.027,0.718,0.264,0.135,0.127,0.118,29.771,1685328390.0],[1136,5500,-0.005,0.0,-0.008,-0.006,-0.005,-0.005,-0.001,0.005,0.009,0.282,0.709,0.665,0.12,0.099,0.987,0.003,0.929,0.986,0.987,0.987,1.083,0.005,13.655,14.227,13.991,1.098,0.975,0.903,0.078,0.001,0.07,0.078,0.078,0.079,0.086,0.005,0.009,11.473,13.255,0.714,0.195,0.186,29.751,1685328486.0],[1137,5500,-0.005,0.0,-0.007,-0.005,-0.005,-0.005,-0.004,0.005,0.045,0.655,0.282,0.118,0.106,0.105,0.987,0.002,0.966,0.986,0.987,0.987,1.006,0.005,13.318,14.255,13.836,0.691,0.688,0.623,0.078,0.0,0.074,0.078,0.078,0.078,0.082,0.005,0.118,11.145,11.645,0.133,0.125,0.125,29.73,1685328583.0";

        List<String> datalist = Arrays.asList(aa.split("]]"));
    }

}
